using System;

namespace UnityEngine.Recorder.Input
{
	public class RenderTextureInput : BaseRenderTextureInput
	{
		private RenderTextureInputSettings cbSettings => (RenderTextureInputSettings)base.settings;

		public override void BeginRecording(RecordingSession session)
		{
			if (cbSettings.m_SourceRTxtr == null)
			{
				throw new Exception("No Render Texture object provided as source");
			}
			base.outputHeight = cbSettings.m_SourceRTxtr.height;
			base.outputWidth = cbSettings.m_SourceRTxtr.width;
			base.outputRT = cbSettings.m_SourceRTxtr;
		}
	}
}
